import request from "@/utils/request";
import cfg from "@/config/config";

const overtimeClearing = {
    //加班计算
    calculateOvertime: param => {
        return request("post", cfg.apiUrl + "api/otSettle/calculateOvertime", param);
    },
    //支付计算
    doPayOvertime: param => {
        return request("post", cfg.apiUrl + "api/otSettle/doPayOvertime", param);
    },
    //支付计算（根据条件的全部）
    doPayAllOvertime: param => {
        return request("post", cfg.apiUrl + "api/otSettle/doPayAllOvertime", param);
    },
    //所属公司
    getUserCompany: param => {
        return request("post", cfg.apiUrl + "api/user/getUserCompany", param);
    },
    //员工类型
    getUserSnyLx: param => {
        return request("post", cfg.apiUrl + "api/user/getUserSnyLx", param);
    },
    //员工状态
    getUserSnyType: param => {
        return request("post", cfg.apiUrl + "api/user/getUserSnyType", param);
    }
};

export default overtimeClearing;